package huanfuan.demo.design.impl;

import huanfuan.demo.design.ICouponDiscount;

import java.math.BigDecimal;

/**
 * @Author huanfuan
 * @Date 2022/1/10 14:23
 * @Version 1.0
 *
 * n元购买
 */
public class NYGCouponDiscount  implements ICouponDiscount<Double> {



    /**
     * n元购购买
     * 1. 无论原价多少钱都固定金额购买
     */
    public BigDecimal discountAmount(Double couponInfo, BigDecimal skuPrice) {

        return new BigDecimal(couponInfo);
    }
}
